<template>
  <el-button icon="el-icon-back" @click="goBack">{{ $t('返回') }}</el-button>
</template>
<script>
export default {
  props: {
    backFuntion: Function
  },
  data() {
    return {}
  },
  created() {
    // console.log(this.backFuntion);
  },
  methods: {
    goBack() {
      if (this.backFuntion) {
        this.backFuntion()
      } else {
        this.$router.go(-1)
      }
    }
  }
}
</script>
<style scoped lang="scss"></style>
